package com.luke.springcloud;

import com.luke.springcloud.config.MyFeignConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * @Descrtption CloudFeignConsumerMain8084
 * @Author luke
 * @Date 2020/5/12
 **/
@SpringBootApplication
@EnableDiscoveryClient
@EnableFeignClients(defaultConfiguration = MyFeignConfig.class) //开启Feign功能
//@EnableFeignClients//开启Feign功能
public class CloudFeignConsumerMain8085 {

    public static void main(String[] args) {
        SpringApplication.run(CloudFeignConsumerMain8085.class,args);
    }

}
